<?php require 'gauche.tpl.php';?>
    <div id="content">
        <div>     
        <h2><?php echo $titreBandeau.' '.$pseudo; ?><span><a href="#" id="showSkill" title="Afficher compétences"> </a></span></h2>
            <?php 
            foreach ($tanks as $tank) {
                $class=''; 
                if (isset($new) === true && in_array($tank['tank_id'], $new) === true) {
                    $class='new';
                }
                $premium = "";
                if ($tank['premium'] === '1') {
                    $premium = "premium";
                }
                ?>
                <div id="<?php echo $tank['tank_id']; ?>" class="bigtank <?php echo $tank['nation'].' '.$class.' '.$premium; ?>">
                <?php if($score === true) {?>
                    <span class="score"><?php echo $tank['score']?></span>
                <?php }?>
                    <img class="mastery" src="<?php echo $baseUri?>/images/class-<?php echo $tank['mark_of_mastery']?>.png" />                    
                    <img class="bigtank" src="<?php echo $tank['image'];?>" alt="<?= $tank['name']?>" title="<?php echo $tank['name']?>"/>
                    <div class="action">                        
                        <a href="<?php echo $baseUri; ?>Membre/Competence/<?php echo $tank['tank_id']; ?>" class="reserve"><img src="../images/crew.png" alt="C" title="mette à jour les compétences" /></a>
                        <span><?php echo $tank['level']?></span>
                    </div>
                    <div class="nomtank"><?= $tank['name']?></div>
                    <div class="skills">
                            <ul>
                        <?php foreach($tank['crew'] as $crew) {?>
                            <li>
                            <img src="<?php echo $crew['image']; ?>" alt="<?php echo $crew['role_id']?>" title="<?php echo $crew['role_id']?>" />
                            <?php foreach ($tank['skills'] as $skill) {?>
                                <?php if ($skill['crew_id'] === $crew['ordre']) {?>
                                    <img alt="<?php echo $skill['name']?>" title="<?php echo $skill['name']?> (<?php echo $skill['valeur']?>)" src="<?php echo $skill['image'];?>" />
                                <?php }?>
                            <?php }?>
                            </li>
                        <?php }?>
                            </ul>
                        </div>
                </div>
                <?php 
            }?> 
        </div>      
    </div>
